package org.boulderfoodrescue.webapp.client.pickups.enterpickupreport;

import java.util.Date;

import com.google.gwt.i18n.shared.DateTimeFormat;
import com.google.gwt.i18n.shared.DateTimeFormat.PredefinedFormat;

public class SpecificPickup {
	private Date date;
	private int pickupInSeries;
	
	protected SpecificPickup(Date date,int pickupInSeries){
		this.date = date;
		this.pickupInSeries = pickupInSeries;
	}

	public String getDateAsString(PredefinedFormat format) {
		return DateTimeFormat.getFormat(format).format(date);
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getPickupInSeries() {
		return pickupInSeries;
	}

	public void setPickupInSeries(int pickupInSeries) {
		this.pickupInSeries = pickupInSeries;
	}
	
}
